Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

566
Views
Random [access_compat:error] AH01797: client denied by server configuration errors in apache's error.log file

My laravel website works as expected in 99% of the cases. But, some URLs give a 500 internal server error. When I check the log file it contains many lines like this:

[access_compat:error] AH01797: client denied by server configuration:

Below is the content of my host configuration file (apache) I'm using http authentication before my actual website login:

    <Location />
     Deny from all
     AuthUserFile /etc/apache2/.htpasswd
     AuthName "Restricted area"
     AuthType Basic
     Satisfy Any
      require valid-user
     </Location>
    
    <Directory "/var/www/html/mysite/">
        AllowOverride All
    </Directory>

    <IfModule mod_expires.c>    
     ExpiresActive on
     ExpiresByType image/jpg "access plus 60 days"
     ExpiresByType image/png "access plus 60 days"
     ExpiresByType image/gif "access plus 60 days"
     ExpiresByType image/jpeg "access plus 60 days"
     ExpiresByType text/css "access plus 1 days"
     ExpiresByType image/x-icon "access plus 1 month"
     ExpiresByType application/pdf "access plus 1 month"
     ExpiresByType text/javascript "access plus 1 week"
</IfModule>

Apache version Server version: Apache/2.4.41 (Ubuntu) Server built: 2020-08-12T19:46:17

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!